<script>/* vi:set ts=4 sw=4 expandtab enc=utf8: */</script>

<!--%import("filter/sync_result.xml")-->
<!--%import("js/admin.js")-->
<!--%import("css/message_list.css")-->
<div style="border-bottom:2px solid #ccc; margin:10px 0px;"><img src="layouts/yamnyam_shop_layout/images/7-2.png" width="300" height="36"></div>
<form method="get" action="./" id="mobilemessage_fo">
    <table cellspacing="0" class="<!--@if($current_version_int > $version_115)-->rowTable<!--@else-->adminTable<!--@end-->">
    <caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
    <thead>
        <tr>
            <th scope="col"><div>{$lang->no}</div></th>
            <th scope="col"><div><input type="checkbox" value="" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
            <th scope="col" class=""><div>{$lang->mtype}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->regdate}</div></th>
            <th scope="col" class=""><div>{$lang->sender}</div></th>
            <th scope="col" class=""><div>{$lang->receiver}</div></th>
            <th scope="col" class=""><div>{$lang->callno}</div></th>
            <th scope="col" class=""><div>{$lang->callback}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->content}</div></th>
            <th scope="col" class=""><div>{$lang->reservation_date}</div></th>
            <th scope="col" class=""><div>{$lang->mstat}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->carrier}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->senddate}</div></th>
        </tr>
    </thead>
    <tbody>
        <!--@foreach($message_list as $no => $val)-->
        <tr class="row{$cycle_idx}">
            <td>{$no}</td>
            <td><input type="checkbox" name="cart" value="{$val->mobilemessage_srl}" /></td>
            <td>{$val->mtype}</td>
            <td>{zdate($val->regdate, "Y-m-d H:i:s")}</td>
            <td><!--@if(!$val->userid)-->-<!--@else-->{htmlspecialchars($val->userid)}<!--@end--></td>
            <td><!--@if(!$val->ref_username)-->-<!--@else-->{htmlspecialchars($val->ref_username)}<!--@end--></td>
            <td><!--@if($config->display_country=='Y')-->{htmlspecialchars($csutil->dispFullnumber($val->country, $val->callno))}<!--@else-->{htmlspecialchars($val->callno)}<!--@end--></td>
        <td>{$val->callback}</td>
        <td title="{htmlspecialchars($val->content)}">{htmlspecialchars($csutil->dispContent($val->content))}</td>
        <td><!--@if($val->reservflag == "Y")--><span class="reservdate">{zdate($val->reservdate, "Y-m-d H:i")}</span><!--@else-->-<!--@end--></td>
        <td>{$csutil->dispStatus($val->mstat)}</td>
        <td>{$val->carrier}</td>
        <td>{zdate($val->senddate, "Y-m-d H:i:s")}</td>
        </tr>
        <!--@end-->
    </tbody>
    </table>

    <!-- 버튼 -->
    <div class="clear">
        <div class="fl">
            <a href="#" onclick="deleteMobilemessageLog(); return false;" class="button red"><span>{$lang->cmd_delete}</span></a>
            <a href="#" onclick="cancelMobilemessage(); return false;" class="button green"><span>{$lang->cmd_reserv_cancel}</span></a>
            <span class="button blue"><button onclick="javascript:if(!prepare_syncdata()) return false; procFilter(this.form, sync_result); return false;">{$lang->cmd_report_all}</button></span>
        </div>
        <div class="fr">
            <a href="?mid={$mid}&module={$module}&act={$act}" class="button black"><span>상위목록</span></a>
        </div>
    </div>

    <!-- 페이지 네비게이션 -->
    <div class="pagination a1">
        <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
        <!--@while($page_no = $page_navigation->getNextPage())-->
            <!--@if($page == $page_no)-->
                <strong>{$page_no}</strong> 
            <!--@else-->
                <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
            <!--@end-->
        <!--@end-->
        <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
    </div>
    <input type="hidden" id="mobilemessage_srls" name="mobilemessage_srls" value="12345" />
</form>
